package com.tangye.massageshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_worker")
@Alias("worker")
public class WorkerEntity extends BaseEntity{
    @TableId(type = IdType.AUTO)
    private Integer workerId;
    @NotBlank
    private String workerName;
    @NotBlank
    private String workerPhone;
    @NotBlank
    private String workerCert;
    @NotBlank
    private String workerSex;
    @NotNull
    private Integer workerAge;
    @NotBlank
    private String workerRole;
    @NotBlank
    private String workerStatus;
    @NotBlank
    private String workStatus;
    @NotNull
    private Integer companyId;

    private Integer shopId;

    private Date entryTime;
    @NotNull
    private String workerContact;
    @NotNull
    private String workerContactPhone;
    @NotNull
    private String workerContactAddress;

}
